<?php

/*
 * titlePacket 题包相关接口
 */
require_once 'common/conn.php';
require_once 'common/common.php';
require_once 'action/titlePacket.action.php';

$action = getParameter("action");
$resultArray = array();
if ($action == "getAllTitlePacket") {
    $version = getParameter("version");
    $os = getParameter("os");
    if (isNotNull($version) && isNotNull($os)) {
        $db = new DBC();
        $resultArray = getAllTitlePacketByOSVersion($db, $version, $os);
        $db->close();
    } else {
        $resultArray['errorNo'] = "2";
        $resultArray['errorMsg'] = "参数不完整";
    }
}
echo json_encode($resultArray);
?>